package com.fisherman.bean;

import org.springframework.stereotype.Component;

/**
 * @User: fisherman
 * @Date: 2020/5/20 11:14
 */
@Component  //加到容器中
public class Car {

    //构造器
    public Car(){
        System.out.println("Car  constructor...");
    }
    //自定义一个初始化方法
    public void init(){
        System.out.println("car...init...");
    }
    //自定义的销毁方法
    public void detory(){
        System.out.println("car...detory...");
    }
}
